﻿//-----------------------------------------------------------------------
// <copyright file="IHttpWebResponse.cs" company="Redmist">
//     Copyright (c) Damien T Smith. All rights reserved.
// </copyright>
// <author>Damien Smith</author>
//-----------------------------------------------------------------------

namespace Redmist.UsageMonitor.WebIO
{
    using System.IO;
    using System.Net;

    /// <summary>An interface for HTTP web responses.</summary>
    public interface IHttpWebResponse
    {
        /// <summary>Gets the headers that are associated with this response from the server.</summary>
        WebHeaderCollection Headers { get; }

        /// <summary>Closes the response stream.</summary>
        void Close();

        /// <summary>Gets the stream that is used to read the body of the response from the server.</summary>
        /// <returns>A System.IO.Stream containing the body of the response.</returns>
        Stream GetResponseStream();
    }
}
